<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container{
      width: 100%;
      height: 800px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #f0f0f0;
    }
    .line {
      width: 10px;
      height: 30px;
      background-color: #526db3;
      margin: 10px;
      transform-origin: center; /* 设置原点在盒子中心 */
      animation: loading 0.3s infinite alternate;
      border-radius: 3px;
    }
    @keyframes loading {
      0% {
       
      }
      100% {
        transform: scaleY(1.8);
        background-color: #3dd91a;
      }
    }

  </style>
</head>
<body>
  <div class="container">
    <div class="line"></div>
    <div class="line"></div>
    <div class="line"></div>
    <div class="line"></div>
    <div class="line"></div>
  </div>
  
</body>
<script>
  let lines = document.querySelectorAll('.line');
  lines.forEach((line, index) => {
    line.style.animationDelay = `${index * 0.1}s`; // 设置每个线条的延迟时间
  });
</script>
</html>